package com.qhy.wxpay.controller.vip;

import com.qhy.wxpay.service.VipSettingsService;
import com.qhy.wxpay.vo.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author qiuhongyu
 * @Title:
 * @Package
 * @Description:
 * @date 2021/5/10 22:59
 */
@Controller
@RequestMapping("/app")
public class VipSettingsController {

    @Autowired
    private VipSettingsService vipSettingsService;

    /**
     * 定义查询支付vip类型
     * @param courseid
     * @return
     */
    @ResponseBody
    @GetMapping("/vipsettings")
    public R vipsettings(String courseid) {
        return R.ok().data("vipsettings", vipSettingsService.list());
    }

}
